Rock mechanics is the theoretical and applied science of the mechanical behaviour of rock and rock masses;also compared to the geology, it is that branch of mechanics concerned with the response of rock and rock masses to the force fields of their physical environment. Rock mechanics itself forms part of the broader subject of geomechanics which is concerned with the mechanical responses of all geological materials, including soils. Rock mechanics, as applied in mining, petroleum, and civil engineering practice, is concerned with the application of the principles of engineering mechanics to the design of the rock structures generated by mining, drilling, reservoir production, or civil construction activity, e.g. tunnels, mining shafts, underground excavations, open pit mines, oil and gas wells, road cuts, waste repositories, and other structures built in or of rock. It also includes the design of reinforcement systems such as rock bolting patterns.